projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57024e1
)
* src/window.c (set_window_buffer): Flush the `base_line_number` cache
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 4 Feb 2024 17:52:01 +0000
(12:52 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 4 Feb 2024 17:52:01 +0000
(12:52 -0500)
src/window.c
patch
|
blob
|
history
diff --git
a/src/window.c
b/src/window.c
index 915f591221d0dbcf50e31a4255f17d8990bc84ed..565ad00804f58cf2a5c4148d8acce7f5ddc1e43f 100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-4151,6
+4151,8
@@
set_window_buffer (Lisp_Object window, Lisp_Object buffer,
buffer);
w->start_at_line_beg = false;
w->force_start = false;
+ /* Flush the base_line cache since it applied to another buffer. */
+ w->base_line_number = 0;
}
wset_redisplay (w);